﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    Layout = "_Layout";
}
@model List<User>

<div class="container-fluid">
<button onclick="window.location.href='@Url.Action("AdminIndex")'">Admin</button>
<br />

<table class="table table-hover" style="margin-bottom:0">
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>用户id</th>
                                    <th>用户名</th>
                                    <th>用户身份证号</th>
                                    <th>电话号</th>
                                    <th>密码</th>
                                    <th>年龄</th>
                                    <th>性别</th>
                                    <th>进入</th>
                                    
                                </tr>
                            </thead>
                            
                            @for (var item=0;item<Model.Count;item++)
                            {
                                <tbody>
                                    <tr>
                                        <th scope="row">@item</th>
                                        <td>@Model[item].Id</td>
                                        <td>@Model[item].Name</td>
                                        <td>@Model[item].Uid</td>
                                        <td>@Model[item].Tel</td>
                                        <td>@Model[item].Upwd</td>
                                        <td>@Model[item].Age</td>
                                        <td>@Model[item].Sex</td>
                                        <td>
                                        <a href="@Url.Action("UserIndex")?Id=@Model[item].Uid" >
                                            User
                                            </a>

                                        </td>
                                </tbody>
                            }
                        </table>
    
</div>
